﻿@model CSEPT.Models.PhotoViewModel

@{
    ViewBag.Title = "View Photo";
}
<form class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4" action="@Url.Action("Tag", "Photo")" method="post">
    @Html.Hidden("PhotoID", Model.Photos[0].ID, new { @Value = Model.Photos[0].ID })
    @Html.Hidden("EventID", Model.Photos[0].PhotoEvent.ID)
    <div class="col-xs-12">
        <img class="img-responsive" src="@Url.Content("~/EventPhotos/" + @Model.Photos[0].ID + "_thumbnail.jpg")" />
    </div>
    <div class="col-xs-12 form-group">
        <label class="control-label">Bib Numbers</label>
        @Html.TextArea("BibNumber", new { @class = "form-control required" })
    </div>
    <div class="col-xs-12">
        @if (Model.Photos[0].Photographer.ID == Model.CurrUser.ID)
        {
            <div class="btn-group">
                <a class="btn btn-lg btn-danger rounded" onclick="$(this).removeClass('rounded'); $(this).siblings('.btn').slideDown(200)" href="#">Delete Photo?</a>
                <a class="btn btn-lg btn-danger" href="@Url.Action("Delete", "Photo", new  {@EventID = Model.Photos[0].PhotoEvent.ID, @PhotoID = Model.Photos[0].ID })" style="display:none">Yes</a>
            </div>
        }
        <button class="btn btn-lg btn-primary pull-right">Submit</button>
    </div>
</form>